package com.tsu.mall.admin.controller;

import com.tsu.mall.common.VO.InitVO;
import com.tsu.mall.admin.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//动态生成init菜单目录
@Controller
@RequestMapping("/init")
public class InitController {
    @Autowired
    private IMenuService imenuService;
    @GetMapping("/initPage")
    @ResponseBody
    public InitVO initPage(){//请求获取主页初始化数据
        return imenuService.init();
    }
}
